import axios from 'axios'
import config from '../config'
const createInstance = (req) => {
  return axios.create({
    baseURL: 'http://47.95.113.63/ssr',
    headers: {
      cookie: req.get('cookie') || ''
    },
    params: { secret: config.secret }
  })
}

export default createInstance
